package com.easywan.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.easywan.dao.CjPlansMapper;
import com.easywan.dao.IBaseDao;
import com.easywan.service.ICjPlansService;
import com.easywan.vo.CjPlans;

@Service
public class CjPlansServiceImpl extends BaseServiceImpl implements ICjPlansService {
	@Autowired
	CjPlansMapper mapper;
	@Override
	public IBaseDao getMapper() {
		return mapper;
	}
	@SuppressWarnings("unchecked")
	@Override
	public CjPlans findById(Integer id) {
		CjPlans cjplans = super.findById(id);
		String content = cjplans.getContent().replaceAll("</a>", "")
				.replaceAll("<a[^>]*>", "");
		cjplans.setContent(content);
		System.out.println(content);
		return cjplans;
	}
}